<form id="feedback_form" name="form" action="{:U('Feedback/insert')}" method="post">
	<input type="hidden"  name="lang" value="{$langid}" />
	<table class="yzh-table-feedback" border="0" cellpadding="0" cellspacing="0" width="100%">
		<tr>
			<td class="input-label">姓名：</td>
			<td>
				<input name="uname" type="text" maxlength="50" id="name" class="input-text"/>
			</td>
		</tr>
		<tr>
			<td class="input-label">主题：</td>
			<td>
                <input name="title" id="name" type="text" maxlength="50" class="input-text"/>
            </td>
		</tr>
		<tr>
			<td class="input-label">电话：</td>
			<td><input name="tel" type="text" maxlength="20" id="mobile" class="input-text"/></td>
		</tr>
		<tr>
			<td class="input-label">邮箱：</td>
			<td><input name="email" type="text" maxlength="50" id="email" class="input-text"/></td>
		</tr>
		<tr>
			<td class="input-label">内容：</td>
			<td>
				<textarea name="content" id="content" class="input-textarea"></textarea>
			</td>
		</tr>
		<tr>
			<td class="input-label">验证码：</td>
			<td>
				<input name="verifyCode" type="text" maxlength="20" class="input-verifycode" />
				<img id="verifyImage" class="checkcode" align="absmiddle" title="Click the refresh verification code" onclick="javascript:resetVerifyCode(this);" src="/index.php?m=index&a=verify">
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td>
				<input class="yzh-btn" type="submit" value="提 交" id="submit" />
				<input class="yzh-btn" type="reset" value="重 置" />
			</td>
		</tr>
	</table>
</form>

<script type="text/javascript">

$("#feedback_form").submit(function () {
    var self = $(this);
    $.post(self.attr("action"), self.serialize(), success, "json");
    return false;


    function success(data) {
      if (data.status) {
          op_success('欢迎回来，页面正在跳转，请稍候。', '温馨提示');
          setTimeout(function () {
              window.location.href = data.url;
          }, 1500);
      } else {
          op_error(data.info, '温馨提示');
          //self.find(".Validform_checktip").text(data.info);
          //刷新验证码
          $(".reloadverify").click();
      }
    }
});

</script>